package com.mzkj.wanjulaile.mobile.api.modules.account.entity;


import com.mzkj.wanjulaile.mobile.api.common.entity.DataEntity;

/**
 * 会员制度Entity
 * @author ianly
 * @version 2016-10-12
 */
public class VipScheme extends DataEntity<VipScheme> {
	
	private static final long serialVersionUID = 1L;
	private Integer type;		// 会员类型
	private Integer fee;		// 会员费用
	private Integer deposit;	// 会员押金
	private Integer playToys;	// 同时可玩玩具个数
	private Integer rentToys;	// 每次只能租大玩具个数
	private String typeName;    //会员类型名称
	private Integer sort;		//排序
	private Integer originalFee;	//原价
	private Integer duration;     //会员时长
	private String  timeUnit;     //会员时长单位 1:日 2:周 3:月 4:年
	private VipCategory vipCategory;//会员类型
	private String showFlag; //会否显示

	private String durationTxt; //会员时长。仅显示使用

	public VipScheme() {
		super();
	}

	public VipScheme(String id){
		super(id);
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getFee() {
		return fee;
	}

	public void setFee(Integer fee) {
		this.fee = fee;
	}

	public Integer getDeposit() {
		return deposit;
	}

	public void setDeposit(Integer deposit) {
		this.deposit = deposit;
	}

	public Integer getPlayToys() {
		return playToys;
	}

	public void setPlayToys(Integer playToys) {
		this.playToys = playToys;
	}

	public Integer getRentToys() {
		return rentToys;
	}

	public void setRentToys(Integer rentToys) {
		this.rentToys = rentToys;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getOriginalFee() {
		return originalFee;
	}

	public void setOriginalFee(Integer originalFee) {
		this.originalFee = originalFee;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public String getTimeUnit() {
		return timeUnit;
	}

	public void setTimeUnit(String timeUnit) {
		this.timeUnit = timeUnit;
	}

	public VipCategory getVipCategory() {
		return vipCategory;
	}

	public void setVipCategory(VipCategory vipCategory) {
		this.vipCategory = vipCategory;
	}

	public String getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(String showFlag) {
		this.showFlag = showFlag;
	}

	public String getDurationTxt() {
		if("1".equals(timeUnit)){
			durationTxt=duration+"日";
		}else if ("2".equals(timeUnit)){
			durationTxt= duration+"周";
		}else if("3".equals(timeUnit)){
			durationTxt = duration+"个月";
		}else if("4".equals(timeUnit)){
			durationTxt = duration+"年";
		}else{
			durationTxt = "未知";
		}
		return durationTxt;
	}
}